using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using SmartLink.DTOS;
using SmartLink.DTOS.SysBasic;
using SmartLink.Application.IServices;
using SmartLink.Domain;

namespace SmartLink.WebApi.Controllers.System
{
    /// <summary>
    /// 部门管理
    /// </summary>
    //public class OrganizationDeptController : BaseAPIControl
    //{
    //    private ISysBasicAppServices _sysBasicAppServices;
    //    public OrganizationDeptController(ISysBasicAppServices sysBasicAppServices)
    //    {
    //        _sysBasicAppServices = sysBasicAppServices;
    //    }

    //    #region  组织架构(部门)管理

    //    /// <summary>
    //    /// 组织架构（部门）列表(分页)
    //    /// </summary>
    //    /// <param name="pagePara"></param>
    //    /// <returns></returns>
    //    [HttpPost]
    //    public Results<PageData<OrganizationDeptDTO>> GetOrganizationDeptList([FromBody]OrganizationDeptPagePara pagePara)
    //    {
    //        return _sysBasicAppServices.GetOrganizationDeptList(pagePara);
    //    }



    //    /// <summary>
    //    /// 添加部门
    //    /// </summary>
    //    /// <param name="inOrganizationDeptDTO"></param>
    //    /// <returns></returns>
    //    [HttpPost]
    //    public Results AddOrganizationDept([FromBody] InOrganizationDeptDTO inOrganizationDeptDTO)
    //    {
    //        return _sysBasicAppServices.AddOrganizationDept(inOrganizationDeptDTO, CurUserInfo.UserId, CurUserInfo.OID);
    //    }
    //    /// <summary>
    //    /// 更新组织架构(部门)
    //    /// </summary> 
    //    /// <param name="updateOrganizationDeptDTO"></param>
    //    /// <returns></returns>
    //    [HttpPost]
    //    public Results UpdateOrganizationDept([FromBody] UpdateOrganizationDeptDTO updateOrganizationDeptDTO)
    //    {
    //        return _sysBasicAppServices.UpdateOrganizationDept(updateOrganizationDeptDTO, CurUserInfo.UserId);
    //    }
    //    /// <summary>
    //    /// 删除组织架构(部门)
    //    /// </summary>
    //    /// <param name="deleteIDDto"></param>
    //    /// <returns></returns>
    //    [HttpPost]
    //    public Results DeleteOrganizationDept([FromBody] DeleteIDDto deleteIDDto)
    //    {
    //        return _sysBasicAppServices.DeleteOrganizationDept(deleteIDDto);
    //    }

    //    /// <summary>
    //    /// 获取单个组织架构(部门)信息
    //    /// </summary>
    //    /// <returns></returns>
    //    [HttpPost]
    //    public Results<OrganizationDeptDTO> GetSingleOrganizationDept([FromBody] GetIDDTO getIDDTO)
    //    {
    //        return _sysBasicAppServices.GetSingleOrganizationDept(getIDDTO);
    //    }


    //    /// <summary>
    //    /// 获取公司下的所有门店
    //    /// </summary>
    //    /// <param name="OrgID"></param>
    //    /// <returns></returns>
    //    [HttpPost]
    //    public Results<IList<OrganizationDeptDTO>> GetAllStoreByOrgId([FromBody]GetIDDTO OrgID)
    //    {
    //        if (OrgID.ID <= 0)
    //            OrgID.ID = CurUserInfo.OID;

    //        return _sysBasicAppServices.GetAllStoreByOrgId(OrgID.ID);
    //    }


    //    ///// <summary>
    //    ///// 根据公司ID获取部门树(OID)
    //    ///// </summary>
    //    ///// <param name="getDeptTreeDTO"></param>
    //    ///// <returns></returns>
    //    //[HttpPost]
    //    //public Results<DeptTreeNode> GetAllDeptTree([FromBody] GetDeptTreeDTO getDeptTreeDTO)
    //    //{
    //    //    return _sysBasicAppServices.GetAllDeptTree(getDeptTreeDTO.OID, CurUserInfo.UserId);
    //    //}



    //    #endregion

    //}
}
